﻿using System;
using System.Web.Mvc;
using System.Web.Routing;

namespace DISP.Core
{
    public class DependencyInjectionControllerFactory : DefaultControllerFactory
    {
        protected override IController GetControllerInstance(RequestContext context, Type controllerType)
        {
            return DependencyInjectionServiceProvider.Get(controllerType) as IController;
        }
    }
}